package frontend.pages.settings.resetpassword;

import frontend.pages.base.BaseWebPage;
import org.apache.wicket.authroles.authorization.strategies.role.annotations.AuthorizeInstantiation;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.wicketstuff.annotation.mount.MountPath;

import static shared.other.UserRolesDefinition.ADMIN_ROLE_KEY;

@MountPath("resetPassword")
@AuthorizeInstantiation(value = {ADMIN_ROLE_KEY})
public class ResetPasswordPage extends BaseWebPage {

    public ResetPasswordPage(PageParameters pageParameters) {
        super("pages.resetPassword.contextualHelp");
        add(new ResetPasswordPanel("resetPasswordPanel", pageParameters));
    }

    public ResetPasswordPage() {
        this(null);
    }
}
